//
//  MyTextView.h
//  textView
//
//  Created by 钓鱼人 on 16/1/25.
//  Copyright © 2016年 game. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JSMessageInputView.h"

#import "UIButton+JSMessagesView.h"


@protocol MYtextViewSenderDeleget <NSObject>

-(void)SenderText:(NSString *)text;

@end

@interface MyTextView : UIView<UITextViewDelegate, JSMessageInputViewDelegate>
@property (strong, nonatomic) JSMessageInputView *inputToolBarView;
@property (assign, nonatomic) CGFloat previousTextViewContentHeight;
@property (assign, nonatomic, readonly) UIEdgeInsets originalTableViewContentInset;
@property (nonatomic,weak) id<MYtextViewSenderDeleget>deleget;

#pragma mark - Initialization
- (UIButton *)sendButton;

#pragma mark - Keyboard notifications
- (void)handleWillShowKeyboard:(NSNotification *)notification;
- (void)handleWillHideKeyboard:(NSNotification *)notification;
- (void)keyboardWillShowHide:(NSNotification *)notification;
@end
